import request from '@/utils/request'
// 查询plc列表
export function listPlc(query) {
  return request({
    url: '/robot/plc/list',
    method: 'get',
    params: query
  })
}
// 查询plc列表，不含分页
export function listsPlc(query) {
  return request({
    url: '/robot/plc/lists',
    method: 'get',
    params: query
  })
}
// 查询plc详细
export function getPlc(id) {
  return request({
    url: '/robot/plc/' + id,
    method: 'get'
  })
}
// 新增plc
export function addPlc(data) {
  return request({
    url: '/robot/plc',
    method: 'post',
    data: data
  })
}
// 修改plc
export function updatePlc(data) {
  return request({
    url: '/robot/plc',
    method: 'put',
    data: data
  })
}
// 删除plc
export function delPlc(id) {
  return request({
    url: '/robot/plc/' + id,
    method: 'delete'
  })
}
